package net.jsoft.pms.repository.goal;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import net.jsoft.pms.entity.goal.GoalEntity;

@Transactional
public interface GoalRepository extends JpaSpecificationExecutor<GoalEntity>, PagingAndSortingRepository<GoalEntity, Long>
{

    @Query("from GoalEntity where percent <> '100'")
    List<GoalEntity> findUnfinished();

}
